<template>
  <div>r</div>
</template>

<script>
export default {
  name: 'Referrer',
  created () {
    const referrer = this.$route.params.referrer_id
    if (!referrer) {
      this.$router.push('/')
    } else {
      this.$store.dispatch('ExecUser/set_referrer', referrer).then(() => {
        this.$router.push('/user/register')
      })
    }
  }
}
</script>
